package com.achao.service;

import com.achao.beans.dto.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: achao
 * @DateTime: 2022/10/15 21:58
 * @Description: TODO
 */

/**
 * name: 指定调用的模块的服务名
 * path: 指定调用模块控制层的@RequestMapping
 * configuration: 指定开启局部日志
 */
@FeignClient(name = "user-service", path = "/user")
public interface OpenFeignService {

    @GetMapping(value = "/name/{name}")
    String name(@PathVariable("name") String name);

    @GetMapping(value = "/hello")
    String hello();

    @GetMapping("/result")
    Result result();

}
